export function columnCoverStatus() {
  return [
    // {
    //   type: "selection",
    //   width: 100,
    //   align: "left",
    // },
    {
      title: '业务单元',
      key: 'buCode',
      render: (h, params) => {
        const item = this.$store.state.buList.filter(item => item.key === params.row.buCode)[0]
        return h('span', item.value)
      }
    },
    {
      title: '填报周期',
      key: 'dcPeriod',
      minWidth: 200
    },
    {
      title: '状态',
      key: 'fgState',
      minWidth: 200
    },
    {
      title: '操作',
      align: 'left',
      fixed: 'right',
      width: 160,
      render: (h, params) => {
        return h('RowTools', {
          props: {
            data: [
              {
                type: 'text',
                text: params.row.fgState === '待提交' ? '编辑' : '详情',
                // optType: params.row.fgState === '待提交' ? '' : 'ashing',
                handle: () => {
                  this.onRowClick(params.row)
                }
              },
              {
                type: 'text',
                text: '删除',
                optType: params.row.fgState === '待提交' ? '' : 'ashing',
                handle: () => {
                  this.deleteFun(params.row)
                }
              }
            ]
          }
        })
      }
    }
  ]
}
